import request from '@/utils/request'

export function addBase(params) {
  return request({
    url: '/plantation/addPlantation',
    method: 'get',
    params
  })
}

export function queryBase(params) {
  return request({
    url: '/plantation/entGetPlantation',
    method: 'get',
    params
  })
}

export function modifiedBase(params) {
  return request({
    url: '/plantation/modifiyPlantation',
    method: 'get',
    params
  })
}

export function getBaseByAcount(params) {
  return request({
    url: '/famerGetSites',
    method: 'get',
    params
  })
}

export function getSingleBase(params) {
  return request({
    url: '/plantation/queryPlantation',
    method: 'get',
    params
  })
}

export function getBaseImages(params) {
  return request({
    url: '/querySiteImages',
    method: 'get',
    params
  })
}

export function deleteBaseImage(params) {
  return request({
    url: '/delSiteImage',
    method: 'get',
    params
  })
}

export function addBaseImage(params) {
  return request({
    url: '/addSiteImage',
    method: 'get',
    params
  })
}

export function getBaseVideo(params) {
  return request({
    url: '/querySiteVideo',
    method: 'get',
    params
  })
}

export function addSiteVideo(params) {
  return request({
    url: '/addSiteVideo',
    method: 'get',
    params
  })
}

export function queryBaseLocations(params) {
  return request({
    url: '/querySiteLocations',
    method: 'get',
    params
  })
}

export function modifiySiteLocations(params) {
  return request({
    url: '/modifiySiteLocations',
    method: 'get',
    params
  })
}

export function addSiteLocations(params) {
  return request({
    url: '/addSiteLocations',
    method: 'get',
    params
  })
}

export function searchBase(params) {
  return request({
    url: '/searchSites',
    method: 'get',
    params
  })
}
// account_site/addAccount_site
export function getBaseManager(params) {
  return request({
    url: '/plantation/getPlantation_account',
    method: 'get',
    params
  })
}

export function delBaseManager(params) {
  return request({
    url: '/account_site/delAccount_site',
    method: 'get',
    params
  })
}

export function addBaseManager(params) {
  return request({
    url: '/account_site/addAccount_site',
    method: 'get',
    params
  })
}

export function queryPlantationByEnt(params) {
  return request({
    url: '/plantation/queryPlantationByEnt',
    method: 'get',
    params
  })
}

export function delPlantation(params) {
  return request({
    url: '/plantation/delPlantation',
    method: 'get',
    params
  })
}

export function delSiteVideo(params) {
  return request({
    url: '/delSiteVideo',
    method: 'get',
    params
  })
}
